import Vue from "vue";
import Vuex from "vuex"
import actions from "./actions";
import mutations from "./mutations";
import getters from "./getters";


const state = {

  cartList: []

}


//1、安装插件
Vue.use(Vuex)

//2、创建store对象
const store = new Vuex.Store({

  state,

  mutations,

  actions,

  getters


})

//3、导出Vue实际
export default store
